package com.tycoin.app.health;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.health.Health;
import org.springframework.boot.actuate.health.HealthIndicator;
import org.springframework.stereotype.Component;

@Component
public class EpgHealth implements HealthIndicator {

    @Autowired
    private EpgProperties epgProperties;

    @Override
    public Health health() {
        return Health.up().withDetail("name", epgProperties.getName()).status("UP").build();
    }

}
